<li
  [ngClass]="{'active': view.active,'disconnected': !view.connected, 'hidden': view.closed != false}"
  [id]="view.id" (click)="setActive()" (dblclick)="view.editable=true;setActive()"
  [title]="view.nick"
>
  <span *ngIf="view.nick && !view.editable" [title]="view.nick">
    <i class="fa" [ngClass]="iconCls"></i> {{view.nick | truncatechars:100 }}
  </span>
  <input *ngIf="view.editable" [(ngModel)]="view.nick" (blur)="view.editable=false" (keyup.enter)="view.editable=false" autofocus="autofocus"/>
  <a class="close" (click)="close()">&times;</a>
</li>
